home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20020314-20021006 / 000414_rgibbens@redskytech.com_Tue Oct 1 15:18:23 EDT 2002.msg < prev    next >
Text File  |  2020-01-01  |  1KB  |  41 lines

  1. Article: 13750 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!news.stealth.net!news.stealth.net!solaris.cc.vt.edu!news.vt.edu!msunews!not-for-mail
  3. From: "Robert Gibbens" <rgibbens@redskytech.com>
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Return Value from User Defined Function
  6. Date: Tue, 1 Oct 2002 14:48:52 -0400
  7. Organization: Michigan State University
  8. Lines: 23
  9. Message-ID: <ancqme$2980$1@msunews.cl.msu.edu>
  10. NNTP-Posting-Host: 208.48.6.2
  11. X-AUTHid: gibbensr
  12. X-Priority: 3
  13. X-MSMail-Priority: Normal
  14. X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
  15. X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13750
  17.  
  18. How would I go about evaluating the return value from a User defined
  19. function?
  20. For example, I have the function
  21.  
  22. DEFINE mlChangePassword {
  23.     (Do something)
  24.     IF FAILURE {
  25.         return 1
  26.     }
  27.     else
  28.     {
  29.         return 0
  30.     }
  31. }
  32.  
  33. and I would like to call it and check whether it returned a 0 or a 1
  34. (Success/Failure) so that I can decide what to do next.
  35.  
  36. Thanks,
  37.     Robert Gibbens
  38.     rgibbens@redskytech.com
  39.  
  40.  
  41.